export default defineStore('paramsStore', () => {
    // 设备编码相关
    const equipmentNumber = ref('');
    const setEquipmentNumber = (payload: string) => {
        equipmentNumber.value = payload;
    };

    // 物料编码相关
    const materialCode = ref('');
    const setMaterialCode = (payload: string) => {
        materialCode.value = payload;
    };

    // 辅助资源编码相关
    const auxiliary = ref('');
    const setAuxiliary = (payload: string) => {
        auxiliary.value = payload;
    };

    // 订单号
    const procureOrder = ref('');
    const setProcureOrder = (payload: string) => {
        procureOrder.value = payload;
    };

    return {
        equipmentNumber,
        setEquipmentNumber,

        materialCode,
        setMaterialCode,

        auxiliary,
        setAuxiliary,

        procureOrder,
        setProcureOrder
    };
});
